﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

using Snipr.CoreLib.Data;

namespace Snipr.CoreLib.DataAccess
{
    public class User
    {
        public Dictionary<string, object> GetUserID(string userName)
        {
            SqlManager sqlManager = new SqlManager();
            return sqlManager.GetFirstRow("GetUserID", new Dictionary<string, object> { { "UserName", userName } });
        }
        public Dictionary<string, object> GetUserName(int userID)
        {
            SqlManager sqlManager = new SqlManager();
            return sqlManager.GetFirstRow("GetUserName", new Dictionary<string, object> { { "UserID", userID } });
        }
    }
}
